<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center supervisionRecords_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub supervisionRecords_fd0_0'>
					<view class='flex flex-wrap align-center supervisionRecords_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  supervisionRecords_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='supervisionRecords_fd0_0_c1_c0'>监督记录</text>
					</view>
					<view class='flex flex-wrap align-center justify-end supervisionRecords_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout">
				<view>
					<benben-flex-tabs class-name='supervisionRecords_benbenTabsfd1_0' v-model="tabs"
						ref="benben_tabsfd1_0" select-mark="benben_tabsfd1_0" key="benben_tabsfd1_0"
						:open-title-type='false' :open-sticky='true' :top='0' :is-show-content='false'
						:scrollspy='false' :tabs-info.sync="tabsInfofd1_0" @change="changeClickTab">

						<scroll-view @scroll="tabsInfofd1_0.scrollX = $event.detail.scrollLeft" id="benben_tabsfd1_0"
							class="benben-tabs" style="width:750rpx" :scroll-x="true"
							:scroll-left.sync="tabsInfofd1_0.moveX" scroll-with-animation="all .3s ease">
							<view class="benben-tabs-content" id="benben_tabsfd1_0-content">
								<view id="benben_tabsfd1_0-title"
									class="benben-tabs-title flex flex align-center justify-around">
									<view
										:class="{ 'checkTitlefd1_0': tabs == '3', 'flex flex-wrap align-center supervisionRecords_titlefd1_0_c3': true }"
										@tap="tabs = '3'" :id="`benben_tabsfd1_0-title-item-${'3'}`">

										<text>全部</text>

									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabs == '1', 'flex flex-wrap align-center supervisionRecords_titlefd1_0_c3': true }"
										@tap="tabs = '1'" :id="`benben_tabsfd1_0-title-item-${'1'}`">

										<text>消防监督</text>

									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabs == '2', 'flex flex-wrap align-center supervisionRecords_titlefd1_0_c3': true }"
										@tap="tabs = '2'" :id="`benben_tabsfd1_0-title-item-${'2'}`">

										<text>环境卫生</text>

									</view>
								</view>
								<view :style="{ left: tabsInfofd1_0.lineleft, maxWidth: tabsInfofd1_0.lineWidth ,}"
									id="benben_tabsfd1_0-line"
									class="benben-tabs-line flex benben-flex-tabs-line supervisionRecords_linefd1_0">
								</view>
							</view>
						</scroll-view>

					</benben-flex-tabs>

				</view>
				<view class='flex flex-direction flex-wrap align-stretch supervisionRecords_fd1_1'>
					<view class='flex flex-direction flex-wrap align-stretch supervisionRecords_fd1_1_c0'
						v-for="(item,index) in arrList" :key="index"
						@tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/mine/supervise/supervise?status=${item.status}&type=${item.type}&aid=${item.aid}`">
						<view class='flex flex-wrap align-center justify-between supervisionRecords_fd1_1_c0_c0'>
							<text class='supervisionRecords_fd1_1_c0_c0_c0' v-if="item.type == 1">消防监督</text>
							<text class='supervisionRecords_fd1_1_c0_c0_c0' v-if="item.type == 2">环境卫生</text>
							<text class='supervisionRecords_fd1_1_c0_c0_c1' v-if="item.status == 0">未受理</text>
							<text class='supervisionRecords_fd1_1_c0_c0_c1' v-if="item.status == 1">已受理</text>
						</view>
						<view class='flex flex-wrap align-start supervisionRecords_fd1_1_c0_c1'>
							<image class='supervisionRecords_fd1_1_c0_c1_c0' mode="aspectFill"
								:src='STATIC_URL+"18.png"'></image>
							<view class='flex flex-direction flex-wrap align-stretch flex-sub'>
								<text class='supervisionRecords_fd1_1_c0_c1_c1_c0'>{{item.city}}</text>
								<view class='flex flex-wrap align-center supervisionRecords_fd1_1_c0_c1_c1_c1'>
									<text class='supervisionRecords_fd1_1_c0_c1_c1_c1_c0'>房屋类型：</text>
									<text class='supervisionRecords_fd1_1_c0_c1_c1_c1_c0' v-if="item.cate_id == 1">住宅</text>
									<text class='supervisionRecords_fd1_1_c0_c1_c1_c1_c0' v-if="item.cate_id == 2">公寓</text>
									<text class='supervisionRecords_fd1_1_c0_c1_c1_c1_c0' v-if="item.cate_id == 3">商铺</text>
									<text class='supervisionRecords_fd1_1_c0_c1_c1_c1_c0' v-if="item.cate_id == 4">写字楼</text>
									<text class='supervisionRecords_fd1_1_c0_c1_c1_c1_c0' v-if="item.cate_id == 6">厂房</text>
								</view>
								<text class='supervisionRecords_fd1_1_c0_c1_c1_c2'>{{item.addr}}</text>
							</view>
						</view>
						 <!-- v-if="item.status == 0" -->
						<view class='flex flex-wrap align-center justify-end supervisionRecords_fd1_1_c0_c2'>
							<button class='supervisionRecords_fd1_1_c0_c2_c0' @click.stop="chexiao(item.aid)">撤销</button>
						</view>
					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<benben-popup v-model="popupShow1695805687954" :mask="true" :mask-close-able="true" mode='bottom'
				:z-index='999'>
				<!---flex布局flex布局开始-->
				<view class="flex benben-flex-layout flex-wrap align-center">
					<view class='flex flex-direction flex-wrap align-stretch supervisionRecords_fd2_0'>
						<view class='flex flex-wrap align-center justify-between supervisionRecords_fd2_0_c0'>
							<text class='supervisionRecords_fd2_0_c0_c0'
								@tap.stop="popupShow1695805687954=false">取消</text>
							<text class='supervisionRecords_fd2_0_c0_c1'>撤销监督</text>
							<text class='supervisionRecords_fd2_0_c0_c2' @tap.stop="closepop_79">确定</text>
						</view>
						<benben-select-diy ref="showSelectPopup1695805739754" class-name='flex flex-direction flex'
							:items.sync="supervise" v-model="id" default-type="value" default-label="name"
							:allow-cancel='false' type="radio" :disabled='false'>
							<template v-for='(item,key0) in supervise'>
								<view v-if="item.isSelected"
									class='flex align-center justify-between flex supervisionRecords_fd2_0_c1_c0'
									:key="key0" @tap="$refs.showSelectPopup1695805739754.tapHandle(key0)">
									<text class='supervisionRecords_fd2_0_c1_c0_c0'>{{item.name}}</text>
									<image class='supervisionRecords_fd2_0_c1_c0_c1' mode="aspectFit"
										:src='STATIC_URL+"8.png"'></image>
								</view>
								<view v-else
									class='flex align-center justify-between flex supervisionRecords_fd2_0_c1_c0'
									:key="key0" @tap="$refs.showSelectPopup1695805739754.tapHandle(key0)">
									<text class='supervisionRecords_fd2_0_c1_c0_c0'>{{item.name}}</text>
									<image class='supervisionRecords_fd2_0_c1_c0_c1' mode="aspectFit"
										:src='STATIC_URL+"6.png"'></image>
								</view>
							</template></benben-select-diy>
					</view>
				</view>

				<!---flex布局flex布局结束-->

			</benben-popup>


		</view>
	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				"popupShow1695805687954": false,
				"tabsInfofd1_0": {
					lineleft: '',
					lineWidth: '',
					moveX: 0,
					scrollX: 0,
					PageScrollX: 0
				},
				"tabs": "3",
				"supervise": [{
					"name": "已做整改",
					"value": "1",
					"image": ""
				}, {
					"name": "点错了",
					"value": "2",
					"image": ""
				}, {
					"name": "其他原因",
					"value": "3",
					"image": ""
				}],
				"id": "",
				type: '10',
				arrList:[],
				chexiaoID:'',
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.getList()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			getList() {
				this.$api.post('/m6752/655ee21fdb95c', {
					type: this.tabs
				}).then(res => {
					if(res.data.code == 1){
						this.arrList = res.data.data.list
					}else{
						this.$message.info(res.data.msg)
					}
				})
			},
			changeClickTab() {
				this.getList()
			},
			
			chexiao(id){
				this.popupShow1695805687954 = true
				this.chexiaoID = id
			},
			
			closepop_79(){
				this.popupShow1695805687954 = false
				this.$api.post('/m6752/655ee28c0f40d',{
					id:this.chexiaoID
				}).then(res=>{
					if(res.data.code == 1){
						this.$message.info(res.data.msg)
					}else{
						this.$message.info(res.data.msg)
					}
				})
			},
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;
	}

	.supervisionRecords_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.supervisionRecords_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 36rpx;
	}

	.supervisionRecords_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.supervisionRecords_fd0_0_c0 {
		width: 120rpx;
	}

	.supervisionRecords_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.supervisionRecords_fd1_1_c0_c2_c0 {
		background: #FC5F80;
		border-radius: 30rpx 30rpx 30rpx 30rpx;
		width: 144rpx;
		line-height: 60rpx;
		font-size: 24rpx;
		color: #fff;
		height: 60rpx;
		font-weight: 500;
	}

	.supervisionRecords_fd1_1_c0_c2 {
		border-top: 1px solid #eee;
		padding: 24rpx 0rpx 0rpx 0rpx;
	}

	.supervisionRecords_fd1_1_c0_c1_c1_c2 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 600;
	}

	.supervisionRecords_fd1_1_c0_c1_c1_c1_c0 {
		color: #999999;
		font-size: 22rpx;
		font-weight: 400;
		line-height: 36rpx;
	}

	.supervisionRecords_fd1_1_c0_c1_c1_c1 {
		margin: 24rpx 0rpx 32rpx 0rpx;
	}

	.supervisionRecords_fd1_1_c0_c1_c1_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 500;
		line-height: 42rpx;
	}

	.supervisionRecords_fd1_1_c0_c1_c0 {
		width: 216rpx;
		height: 192rpx;
		border-radius: 16rpx;
		margin: 0rpx 24rpx 0rpx 0rpx;
	}

	.supervisionRecords_fd1_1_c0_c1 {
		padding: 0rpx 0rpx 24rpx 0rpx;
	}

	.supervisionRecords_fd1_1_c0_c0_c1 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 500;
	}

	.supervisionRecords_fd1_1_c0_c0_c0 {
		color: #999999;
		font-size: 28rpx;
		font-weight: 400;
	}

	.supervisionRecords_fd1_1_c0_c0 {
		margin: 0rpx 0rpx 24rpx 0rpx;
	}

	.supervisionRecords_fd1_1_c0 {
		background: var(--benbenbgColor1);
		margin: 0rpx 0rpx 24rpx 0rpx;
		padding: 32rpx 24rpx 32rpx 24rpx;
		border-radius: 16rpx;
		background-size: 100% auto;
	}

	.supervisionRecords_fd1_1 {
		padding: 24rpx 24rpx 0rpx 24rpx;
	}

	.supervisionRecords_titlefd1_0_c3 {
		color: #999999;
		font-size: 30rpx;
		font-weight: 400;
		height: 42rpx;
	}

	.supervisionRecords_linefd1_0 {
		background: #FC5F80;
		width: 30rpx;
		height: 6rpx;
		top: 80rpx;
		background-size: 100% auto !important;
		border-radius: 3rpx 3rpx 3rpx 3rpx;
	}

	.checkTitlefd1_0 {
		font-weight: 500 !important;
		font-size: 30rpx !important;
		color: rgba(51, 51, 51, 1) !important;
		background-color: rgba(255, 255, 255, 1) !important;
	}

	::v-deep .supervisionRecords_benbenTabsfd1_0 {
		background: #fff;
		width: 750rpx;
		height: 90rpx;
		white-space: nowrap;
		text-align: center;
	}

	.supervisionRecords_fd2_0_c1_c0_c1 {
		width: 36rpx;
		height: 36rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.supervisionRecords_fd2_0_c1_c0_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 400;
	}

	.supervisionRecords_fd2_0_c1_c0 {
		padding: 24rpx 0rpx 24rpx 0rpx;
	}

	.supervisionRecords_fd2_0_c0_c2 {
		color: #FC5F80;
		font-size: 32rpx;
		font-weight: 500;
		line-height: 40rpx;
	}

	.supervisionRecords_fd2_0_c0_c1 {
		color: #333333;
		font-size: 36rpx;
		font-weight: 500;
	}

	.supervisionRecords_fd2_0_c0_c0 {
		color: #999999;
		font-size: 32rpx;
		font-weight: 400;
		line-height: 40rpx;
	}

	.supervisionRecords_fd2_0_c0 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.supervisionRecords_fd2_0 {
		background: #FFFFFF;
		border-radius: 24rpx 24rpx 0rpx 0rpx;
		width: 750rpx;
		padding: 0rpx 32rpx 0rpx 32rpx;
	}
</style>